home *** CD-ROM | disk | FTP | other *** search
- SAY.COM -- by Serge Couture, PC Magazine, 11-25-86, p. 337
-
- SAY, among other things, may substitute for ECHO. It will print any text
- characters from the command line that are enclosed within quotation marks (").
- If you want to echo the quotation-mark character itself, use a pair of
- quotation marks. If the quotation mark is the first character to be echoed,
- triple the quotation marks. If decimal ASCII code values are entered on the
- command line without embedding them within quotation marks, SAY will handle
- nonprintable characters. Redirection or piping characters (<,>, and |) must be
- represented as ASCII values (60, 62, and 124), because DOS will try to redirect
- or pipe a command, when it sees the actual symbols on the command line.
-
- EXAMPLES:
-
- STATEMENT: SAY """Compaq?"" he asks." 13 10 "She answers ""PC AT."""
- RESULT: "Compaq?" he asks.
- She answers "PC AT."
-
- STATEMENT: SAY 27 "&16D" >PRN
- RESULT: Sends an Escape sequence to the printer and shows the actual
- characters that are being sent
-
- STATEMENT: SAY 27 "[0;68;""CLS"";13;""DIR /P;" ";13p"
- RESULT: Redefines F10 to do a clear screen and DIR /P, if you are
- using ANSI.SYS.
-
- STATEMENT: SAY 13 "DISK1" 13 "N" 13 | FORMAT B: /S /V
- RESULT: Formats and names a floppy disk without any user intervention.